package com.service.scheduling.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.service.dao.model.OtcOrder;

import java.util.Date;

/**
 * 场外交易
 *
 * @author xxxx
 * @email xxxx@qq.com
 * @date 2019-11-18 10:15:22
 */
public interface OtcOrderService extends IService<OtcOrder> {

    /**
     * 获取单价最高的订单
     * @param someDay
     * @return
     */
    OtcOrder getMaxPriceOrder(Date someDay);

    /**
     * 获取单价最低的订单
     * @param someDay
     * @return
     */
    OtcOrder getMinPriceOrder(Date someDay);

    /**
     * 获取当天创建的订单最后一个成交单
     * @param someDay
     * @return
     */
    OtcOrder getLastDealOrder(Date someDay);

}

